Leafo\ScssPhp\Compiler D

Total Complexity 913
Dependencies 15
Dependents 2
Total lines 5,288
Lines of code 2,881
Logical lines of code 1,893
Comment lines 1,075
Methods 205
Properties 110

Methods 205

Method Rating Maintainability Complexity Lines of code
compileChild()
D
12
88 271
reduce()
D
24
62 131
compileValue()
D
31 33 105
applyArguments()
C
34 27 90
matchExtendsSingle()
B
41 19 55
matchExtends()
B
40 18 57
spliceTree()
B
42 18 52
mergeMediaTypes()
A
46 14 43
opColorColor()
A
45 14 41
compileMediaQuery()
A
42 12 54
evalSelectorPart()
A
55 13 16
get()
A
49 12 30
findImport()
A
50 12 27
flattenSelectors()
A
47 11 37
coerceValue()
A
47 11 36
compile()
A
43 10 48
alterColor()
A
51 11 25
compileImport()
A
51 10 28
isWithout()
A
60 11 12
compileBlock()
A
48 9 31
multiplyMedia()
A
52 9 25
callNativeFunction()
A
52 9 23
mergeDirectRelationships()
A
53 9 22
libIndex()
A
53 9 22
compileMedia()
A
47 8 36
libTypeOf()
A
55 9 20
joinSelectors()
A
52 8 25
setExisting()
A
55 8 19
compileWith()
S
50 7 30
sortArgs()
S
52 7 25
libMix()
S
51 7 25
combineSelectorSingle()
S
53 7 24
libScaleColor()
S
53 7 24
normalizeValue()
S
53 7 23
coerceList()
S
53 7 21
libStrSlice()
S
56 7 17
libComparable()
S
60 7 12
toHSL()
S
52 6 23
flattenSelectorSingle()
S
56 6 18
hueToRGB()
S
57 6 17
hasSelectorPlaceholder()
S
61 6 13
getNormalizedNumbers()
S
54 5 21
libZip()
S
56 5 19
multiplySelectors()
S
57 5 18
opAdd()
S
58 5 16
coerceColor()
S
57 5 16
extractRelationshipFromFragment()
S
58 5 15
fncall()
S
58 5 15
injectVariables()
S
58 5 15
shouldEval()
S
61 5 12
callScssFunction()
S
54 4 21
compileSelectorPart()
S
58 4 16
missingSelectors()
S
58 4 15
libSetNth()
S
59 4 15
pushExtends()
S
60 4 14
libListSeparator()
S
61 4 13
listSeparatorForJoin()
S
61 4 13
compileDirective()
S
61 4 11
compileStringContent()
S
62 4 11
fixColor()
S
63 4 11
compileAtRoot()
S
52 3 25
mediaParent()
S
65 4 9
filterWithout()
S
64 4 10
opAnd()
S
65 4 9
opOr()
S
65 4 9
toRGB()
S
57 3 15
libCall()
S
58 3 15
libMin()
S
63 4 10
libMax()
S
63 4 10
libNth()
S
63 4 10
expToString()
S
61 3 13
libFunctionExists()
S
60 3 13
evalSelectors()
S
61 3 12
extractInterpolation()
S
61 3 11
set()
S
63 3 11
throwError()
S
63 3 11
libMapRemove()
S
61 3 11
libRandom()
S
62 3 11
makeOutputBlock()
S
56 2 19
importFile()
S
58 2 16
isSelfExtend()
S
67 3 8
compileChildren()
S
67 3 8
compileChildrenNoReturn()
S
65 3 9
isImmediateRelationshipCombinator()
S
78 3 3
opEq()
S
65 3 9
opNeq()
S
65 3 9
addParsedFile()
S
72 3 5
handleImportLoop()
S
64 3 9
coerceMap()
S
66 3 9
coercePercent()
S
65 3 9
libRgba()
S
62 3 10
libAlpha()
S
69 3 6
libQuote()
S
67 3 7
libMapGet()
S
62 3 10
libMapHasKey()
S
63 3 10
collapseSelectors()
S
61 2 14
compileSelector()
S
63 2 12
libInvert()
S
62 2 11
isTruthy()
S
79 2 3
opDivNumberNumber()
S
68 2 6
opCmpNumberNumber()
S
73 2 4
toBool()
S
80 2 3
compactEnv()
S
71 2 6
extractEnv()
S
69 2 7
pushEnv()
S
65 2 9
getStoreEnv()
S
79 2 3
addImportPath()
S
73 2 5
fileExists()
S
79 2 3
coerceForExpression()
S
72 2 6
coerceString()
S
70 2 6
assertMap()
S
69 2 7
assertList()
S
71 2 6
assertColor()
S
71 2 6
assertNumber()
S
70 2 6
libIf()
S
68 2 7
libIeHexStr()
S
70 2 5
libOpacity()
S
68 2 7
adjustHsl()
S
64 2 9
libSaturate()
S
64 2 9
libGrayscale()
S
67 2 7
libOpacify()
S
67 2 7
libTransparentize()
S
67 2 7
libUnquote()
S
69 2 7
libKeywords()
S
63 2 10
libUnit()
S
68 2 7
libUnitless()
S
74 2 4
libStrIndex()
S
65 2 8
libToLowerCase()
S
69 2 6
libToUpperCase()
S
69 2 6
libFeatureExists()
S
68 2 7
libUniqueId()
S
64 2 8
libInspect()
S
70 2 6
compileKeyframeBlock()
S
59 1 14
__construct()
S
77 1 4
parserFactory()
S
70 1 6
compileRoot()
S
70 1 6
compileNestedBlock()
S
66 1 8
compileComment()
S
72 1 5
evalSelector()
S
78 1 3
normalizeName()
S
79 1 3
opAddNumberNumber()
S
77 1 3
opMulNumberNumber()
S
77 1 3
opSubNumberNumber()
S
77 1 3
opModNumberNumber()
S
77 1 3
opColorNumber()
S
67 1 8
opNumberColor()
S
67 1 8
opGteNumberNumber()
S
78 1 3
opGtNumberNumber()
S
79 1 3
opLteNumberNumber()
S
78 1 3
opLtNumberNumber()
S
78 1 3
flattenList()
S
80 1 3
popEnv()
S
81 1 3
setRaw()
S
80 1 3
has()
S
78 1 3
setVariables()
S
79 1 3
unsetVariable()
S
80 1 3
getVariables()
S
82 1 3
getParsedFiles()
S
82 1 3
setImportPaths()
S
80 1 3
setNumberPrecision()
S
80 1 3
setFormatter()
S
81 1 3
setLineNumberStyle()
S
81 1 3
setSourceMap()
S
81 1 3
setSourceMapOptions()
S
81 1 3
registerFunction()
S
78 1 3
unregisterFunction()
S
79 1 3
addFeature()
S
80 1 3
setEncoding()
S
81 1 3
setIgnoreErrors()
S
81 1 3
getBuiltinFunction()
S
64 1 10
libRgb()
S
74 1 4
libAdjustColor()
S
73 1 5
libChangeColor()
S
74 1 5
libRed()
S
75 1 4
libGreen()
S
75 1 4
libBlue()
S
75 1 4
libHsl()
S
74 1 4
libHsla()
S
69 1 6
libHue()
S
70 1 5
libSaturation()
S
70 1 5
libLightness()
S
70 1 5
libAdjustHue()
S
71 1 5
libLighten()
S
70 1 5
libDarken()
S
70 1 5
libDesaturate()
S
71 1 5
libComplement()
S
78 1 3
libFadeIn()
S
80 1 3
libFadeOut()
S
80 1 3
libPercentage()
S
77 1 3
libRound()
S
74 1 4
libFloor()
S
74 1 4
libCeil()
S
74 1 4
libAbs()
S
74 1 4
libLength()
S
75 1 4
libMapKeys()
S
72 1 5
libMapValues()
S
72 1 5
libMapMerge()
S
71 1 5
libJoin()
S
67 1 7
libAppend()
S
69 1 6
libStrInsert()
S
64 1 9
libStrLength()
S
71 1 5
libGlobalVariableExists()
S
72 1 5
libMixinExists()
S
71 1 5
libVariableExists()
S
72 1 5
libCounter()
S
73 1 4